<?php

/**
 * journal actions.
 *
 * @package    theconnexter
 * @subpackage journal
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class journalActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
    //journal en cours 
    $this->journalEncours=Doctrine_core::getTable('journal')->getJournalById($request->getParameter('id'));
  }
  
  public function executeDownload(sfWebRequest $request){
	$this->pager = new sfDoctrinePager(
      'Journal',
      sfConfig::get('app_max_news_archivepage')
	);/*
	$this->pager->setQuery(Doctrine_Core::getTable('Journal')->getJournalArchives());
	$this->pager->setPage($request->getParameter('page', 1));
	$this->pager->init();*/
	$this->journalarchives=Doctrine_Core::getTable('Journal')->getJournalArchives();
}
}
